TTEFP

Syntax: TTEFP (floatvar, floatstr$)
Location: QView Tiny Toolkit

This function tries to convert the string given as the second parameter into a floating point number and assign this value to the floating point variable given as the first argument. 

There is no difference to the assignment:

floatvar = floatstr$ 

except where an error occurs, ie. if floatstr$ cannot be converted to a float. Whereas the assignment above will break with an error, TTEFP will allow you to track that down by checking its return; the number returned by TTEFP is the QDOS error code (or 0 if the assignment was successful).

CROSS-REFERENCE:
CHECK%, CHECKF.
